# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=fuzzdb
pkgver=475.5656ab2
pkgrel=3
groups=('blackarch' 'blackarch-fuzzer')
pkgdesc='Attack and Discovery Pattern Dictionary for Application Fault Injection Testing.'
url='https://github.com/fuzzdb-project/fuzzdb'
arch=('any')
license=('BSD')
depends=('python2')
makedepends=('git')
source=("git+https://github.com/fuzzdb-project/$pkgname.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package() {
  cd $pkgname

  install -dm 755 "$pkgdir/usr/share/$pkgname"

  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md
  install -Dm 644 _copyright.txt \
    "$pkgdir/usr/share/licenses/$pkgname/_copyright.txt"

  rm README.md _copyright.txt

  cp -a --no-preserve=ownership * "$pkgdir/usr/share/$pkgname/"
}

